package com.zhong.model;

import com.zhong.annotation.ParamValidator;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author:yanglin on 2018/6/17.
 */
@Data
@RequestMapping(name = "user", method= RequestMethod.GET)
public class User extends Base {

    @ParamValidator(value = "姓名", required = true)
    private String name;

    @ParamValidator(value = "地址")
    private String address;

    @ParamValidator(value = "年龄", required = true)
    private Integer age;

    @ParamValidator(value = "薪资")
    public Integer sale;  //null
}
